package lec01.pm;
import java.util.Scanner;

import eq.util.MyMath;

public class CycNumberDemo {
	//static java.util.Stack s;
	static void run() {
		Scanner cin = new Scanner(System.in);
		while (cin.hasNext()) {
			int n = cin.nextInt();
			while (!MyMath.isSysmetric(n)) {
				int m = MyMath.getReverse(n);
				System.out.println(String.format("%d+%d=%d", n, m, n + m));
				n = n + m;
			}
		}

		cin.close();
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		run();
	
	}

	

}
